﻿@borderColor:1px solid #000000;/*变量*/
@color:#ff0000;
#bianLiang{
   border:@borderColor;
   color:@color;
}
/*变量end*/

/*混合*/
.rounded-corners(@radius:5px){
    border-radius:@radius;
}
#mix{
    .rounded-corners(10px);
    border:@borderColor;
}
/*嵌套规则*/
#nesting{
    border:@borderColor;
    h1{
      color:@color;  
    }
    p{
        font-size:12px;
        a{
           text-decoration:none; 
           color:#4cff00;
           &:hover{
               //border-width:1px;
               color:#000;
           } 
        }
    }
}
/*函数&运算*/
@the-border:1px;
@base-corlor:#770000;
@red:#842210;
#operation{
    color:@base-corlor;
    border-right-style:solid;
    border-right-color:@base-corlor+#ee0000;
    border-right-width:@the-border*2;
}
#operation1{
    border:@borderColor;
    /*border-*/
}




